<!DOCTYPE html>
<html class="login-bg">
<head>
	<title>用户登录</title>
    
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	
    <!-- bootstrap -->
    <link href="/css/bootstrap/bootstrap.css" rel="stylesheet" />
    <link href="/css/bootstrap/bootstrap-responsive.css" rel="stylesheet" />
    <link href="/css/bootstrap/bootstrap-overrides.css" type="text/css" rel="stylesheet" />

    <!-- global styles -->
    <link rel="stylesheet" type="text/css" href="/css/layout.css" />
    <link rel="stylesheet" type="text/css" href="/css/elements.css" />
    <link rel="stylesheet" type="text/css" href="/css/icons.css" />

    <!-- libraries -->
    <link rel="stylesheet" type="text/css" href="/css/lib/font-awesome.css" />
    
    <!-- this page specific styles -->
    <link rel="stylesheet" href="/css/compiled/signin.css" type="text/css" media="screen" />

    <!-- open sans font -->
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css' />

    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<body>


    <div class="row-fluid login-wrapper">
        <a href="#">
            <img class="logo" src="/img/logo-white.png" />
        </a>

        <div class="span4 box">
            <div class="content-wrap">
                <h6>登录</h6>
                <input class="span12" type="text" placeholder="用户名" id="username"/>
                <input class="span12" type="password" placeholder="密码" id="password"/>
                <a href="#" class="forgot"></a>
                <div class="remember">
                    <input id="remember-me" type="checkbox" />
                    <label for="remember-me">记住登录状态</label>
                </div>
                <a class="btn-glow primary login" href="#" onclick="login()">登录</a>
            </div>
        </div>

        <div class="span4 no-account">
            <p></p>
            <a href="#"></a>
        </div>
    </div>

	<!-- scripts -->
    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <script src="/js/bootstrap.min.js"></script>
    <script src="/js/theme.js"></script>
    <script src="/js/pokemon.js"></script>

    <!-- pre load bg imgs -->
    <script type="text/javascript">
    
    	function login(){
    		var username = $('#username').val();
    		var password = $('#password').val();
    		if(username==null){
    			alert('用户名为空');
    		}
    		if(password==null){
    			alert('密码为空');
    		} 
    		
    		var param = {};
    		param.username = username;
    		param.password = password;
    		postContent('/admin/login/',param,true,function(data){
    			if(data!=null){
    				window.location.href = "/vote/statics";
    			}
    		});
    	}
    
        $(function () {
            // bg switcher
            var $btns = $(".bg-switch .bg");
            $btns.click(function (e) {
                e.preventDefault();
                $btns.removeClass("active");
                $(this).addClass("active");
                var bg = $(this).data("img");

                $("html").css("background-image", "url('/img/bgs/" + bg + "')");
            });

        });
    </script>
<div style="display:none"><script src='http://v7.cnzz.com/stat.php?id=155540&web_id=155540' language='JavaScript' charset='gb2312'></script></div>
</body>
</html>